<table>
    <thead>
        <tr>
            <th style="border-left:0px;"><input type="checkbox" class="submit" onclick="this.value=check(this.form['id[]'])" value="check_none"></th>
            <th>Name</th>
           
        </tr>
    </thead>
    <tbody>
    <?php if(count($records)){ 

    
        foreach($records as $key=>$item){
    ?>
        <tr>
            <td class="center" style="border-left:0px;">
                <input type="checkbox" value="<?php echo $item['id']; ?>" name="id[]" class="checkbox">
            </td>
            <td><?php echo $item['name']; ?></td>
            
           
        </tr>
     <?php } } ?>
        </tbody>
</table>
        
        <?php  echo $this->pagination->create_links(); ?>